package com.demo.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
public class Application {

	/**
	 * 默认的启动凡方式
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
	
	/**
	 * 自定义启动方式
	 */
	/*public static void main(String[] args) throws Exception {
		SpringApplication application = new SpringApplication(Application.class); 
		Banner banner = new Banner() {
			
			@Override
			public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out) {
				out.append("\t \t \t \t Spring Boot Demo Project \n");
				out.print(environment.getProperty("java.specification.version"));
				out.println();
				Properties p = System.getProperties();
				for ( Iterator it = p.keySet().iterator(); it.hasNext(); )
	              {
	                     String key = (String ) it.next();
	                     String value = (String )  p.get(key);
	                     System.out.println(key +":" +value);
	              }
				
			}
		};
        application.setBanner(banner);
        application.run(args); 
	}*/

}
